package org.budo.netty.servlet.server.session;

import javax.servlet.http.HttpSession;

/**
 * @author lmw
 */
public abstract class AbstractBudoHttpSession implements HttpSession {
    @Override
    public long getCreationTime() {
        throw new UnsupportedOperationException("#11 this=" + this);
    }

    @Override
    public long getLastAccessedTime() {
        throw new UnsupportedOperationException();
    }

    @Override
    public void setMaxInactiveInterval(int interval) {
        throw new UnsupportedOperationException();
    }

    @Override
    public int getMaxInactiveInterval() {
        throw new UnsupportedOperationException();
    }

    @SuppressWarnings("deprecation")
    @Override
    public javax.servlet.http.HttpSessionContext getSessionContext() {
        throw new UnsupportedOperationException();
    }

    @Override
    public Object getValue(String name) {
        return this.getAttribute(name);
    }

    @Override
    public void putValue(String name, Object value) {
        this.setAttribute(name, value);
    }

    @Override
    public void removeValue(String name) {
        this.removeAttribute(name);
    }
}